﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Process.BLL;
using Process.Entities;
using System.Data;

namespace Business
{
    public partial class ProductDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadProductInfo();
        }
        void LoadProductInfo()
        {
            if (!IsPostBack)
            {
                string productID = Request.QueryString["id"];
                DetailsView1.DataSource = ProductBLL.GetProductByID(productID);
                DetailsView1.DataBind();
            }

        }
    }
}